package com.lanou.service.impl;

import com.lanou.bean.Owner;
import com.lanou.mapper.OwnerMapper;
import com.lanou.service.OwnerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OwnerServiceImpl implements OwnerService{

    @Autowired
    private OwnerMapper ownerMapper;

    @Override
    public Owner selectByPrimaryKey(Integer id) {
        return ownerMapper.selectByPrimaryKey(id);
    }


    @Override
    public int insert(Owner owner) {
        return ownerMapper.insert(owner);
    }

    @Override
    public List<Owner> getOwnerName() {
        return ownerMapper.getOwnerName();
    }
}
